-
Notifications
You must be signed in to change notification settings - Fork 3
chore(tests): add linting to e2e tests #1254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
tests/e2e/config/project.go
Outdated
| func PrepareProject(testData string) { | ||
| kustomization := fmt.Sprintf("%s/%s", testData, "kustomization.yaml") | ||
| ns, err := kustomize.GetNamespace(kustomization) | ||
| ns, _ := kustomize.GetNamespace(kustomization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better not to ignore the error handling, but to add it
tests/e2e/config/project.go
Outdated
| namePrefix, err := GetNamePrefix() | ||
| if err != nil { | ||
| } | ||
| namePrefix, _ := GetNamePrefix() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better not to ignore the error handling, but to add it
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
|
Workflow has started. The target step completed with status: success. |
7a7e5e0 to
ae3edba
Compare
Signed-off-by: Maxim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
* chore(tests): add linting to e2e tests Signed-off-by: Maksim Fedotov <[email protected]> * fix newline Signed-off-by: Maksim Fedotov <[email protected]> * fix name Signed-off-by: Maksim Fedotov <[email protected]> * remove prune path Signed-off-by: Maksim Fedotov <[email protected]> * fix e2e config Signed-off-by: Maksim Fedotov <[email protected]> * handle errors Signed-off-by: Maksim Fedotov <[email protected]> * update .golangci.yaml Signed-off-by: Maksim Fedotov <[email protected]> * fix updatedVmObj & updatedVmObjC Signed-off-by: Maksim Fedotov <[email protected]> * fix %s in fmt.Errorf Signed-off-by: Maksim Fedotov <[email protected]> * fix insecureTls Signed-off-by: Maksim Fedotov <[email protected]> * fix ApiVersion Signed-off-by: Maksim Fedotov <[email protected]> * fix VmConfiguration Signed-off-by: Maksim Fedotov <[email protected]> * fix Vm* variables Signed-off-by: Maksim Fedotov <[email protected]> * fix SshUser Signed-off-by: Maksim Fedotov <[email protected]> * fix SshOptions Signed-off-by: Maksim Fedotov <[email protected]> * fix VmConf Signed-off-by: Maksim Fedotov <[email protected]> * fix SshCommand Signed-off-by: Maksim Fedotov <[email protected]> * fix LocalSshOpts Signed-off-by: Maksim Fedotov <[email protected]> * fix VmLabelAnnotation & GetFullApiResourceName Signed-off-by: Maksim Fedotov <[email protected]> * golangci-lint run --fix Signed-off-by: Maksim Fedotov <[email protected]> * fix stylecheck dot imports error Signed-off-by: Maksim Fedotov <[email protected]> * disable all initials except VM and SSH Signed-off-by: Maksim Fedotov <[email protected]> * fix Vm->VM ST1003 errors by stylecheck Signed-off-by: Maksim Fedotov <[email protected]> * fix fmt.Errorf() formatting Signed-off-by: Maksim Fedotov <[email protected]> * replace other initialisms Signed-off-by: Maksim Fedotov <[email protected]> * golangci-lint --fix Signed-off-by: Maksim Fedotov <[email protected]> --------- Signed-off-by: Maksim Fedotov <[email protected]> Signed-off-by: Maxim Fedotov <[email protected]>
Description
Add linting to e2e tests.
Why do we need it, and what problem does it solve?
What is the expected result?
Checklist
Changelog entries